/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package syntaxtree;

/**
 *
 * @author laurent
 */
public class Counter {
    
     public static Counter getInstance() {
        if (null == instance) { // Premier appel
            instance = new Counter();
        }
        return instance;
    }
    
    private Counter(){}
    private static Counter instance;
    
    private static int Inst = 0;
    public static int getInst(){return Inst;}
    public static void addInst(){
        Inst++;}
    
    public static int line = 0;
}
